package com.zbkj.crmeb.merchant.api.response;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
public class AppletPickingProductResponse implements Serializable {

    @ApiModelProperty(value = "商品id")
    private Integer productId;

    @ApiModelProperty(value = "商品名称")
    private String storeName;

    @ApiModelProperty(value = "商品图片")
    private String image;

    @ApiModelProperty(value = "关键字")
    private String keyword;

    @ApiModelProperty(value = "供应商名称")
    private String suppliersName;

    @ApiModelProperty(value = "发货地")
    private Integer tempId;

    @ApiModelProperty(value = "品牌名称")
    private String brandName;

    @ApiModelProperty(value = "分类id")
    private Integer cateId;

    @ApiModelProperty(value = "分类名称")
    private String cateName;

    @ApiModelProperty(value = "不同供应商代码")
    private Integer isEurope;

    @ApiModelProperty(value = "供应商id")
    private Integer suppliersId;

    @ApiModelProperty(value = "汇率")
    private BigDecimal exchangeRate;

    @ApiModelProperty(value = "汇率")
    private List<AppletPickingSku> skuList;

    @Data
    public static class AppletPickingSku{

        @ApiModelProperty(value = "批采商品id")
        private Integer id;

        @ApiModelProperty(value = "商品sku id")
        private String skuId;

        @ApiModelProperty(value = "规格")
        private String suk;

        @ApiModelProperty(value = "零售价")
        private BigDecimal price;

        @ApiModelProperty(value = "成本价")
        private BigDecimal cost;

        @ApiModelProperty(value = "运税费")
        private BigDecimal taxAndSecondPrice;

        @ApiModelProperty(value = "批发价")
        private BigDecimal wholesalePrice;

        @ApiModelProperty(value = "库存")
        private Integer stock;

        @ApiModelProperty(value = "加价方式（ 0加价率  1固定价格 ）")
        private Integer priceType;

    }

}